import request from '@/utils/request'

export function fetchAnimationList(query) {
  return request({
    url: '/getAnimationPage.do',
    method: 'post',
    params: query
  })
}
export function fetchArticleList(query) {
  return request({
    url: '/getArticlePage.do',
    method: 'post',
    params: query
  })
}
export function updateArticle(row) {
  return request({
    url: '/updateArticle.do',
    method: 'post',
    data: {
      contentRow: row.contentRow,
      content: row.content,
      index: row.index
    },
    headers: {
      'content-type': 'application/json;charset=urf-8'
    }
  })
}
export function addAnimation() {
  return request({
    url: '/updateArticle.do',
    method: 'post',
    data: {
    },
    headers: {
      'content-type': 'application/json;charset=urf-8'
    }
  })
}
